<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
	<title>无标题文档</title>
	<link href="__PUBLIC__/admin/sncss/css/style.css" rel="stylesheet" type="text/css"/>
<script src="__PUBLIC__/js/jquery1.8.3.js"></script>
<script language="javascript" type="text/javascript" src="__PUBLIC__/admin/datepicker/WdatePicker.js"></script>
<script type="text/javascript">
//时间选择
function selecttime(flag){
	if(flag==1){
		var endTime = $("#countTimeend").val();
		if(endTime != ""){
			WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',maxDate:endTime});
		}else{
			WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'});
		}
	}else{
		var startTime = $("#countTimestart").val();
		if(startTime != ""){
			WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss',minDate:startTime});
		}else{
			WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'});
		}
	}
}
</script>
</head>
<style>
	input,select {
		text-indent:3px;
		border: 1px #cccccc solid;
		height: 25px;
		line-height: 25px;
		width:200px;
	}
	table thead tr th:first-child{
		width: 30%;
		text-align: right;
	}
</style>
<body>

<div class="place">
	<span>位置：</span>
	<ul class="placeul">
		<li><a>首页</a></li>
		<li><a>派单管理</a></li>
		<li><a>派单数据</a></li>
	</ul>
</div>

<div class="rightinfo">
	<div class="tools">
		<form method="post" enctype="multipart/form-data" action="{:U('/Home/Signorder/sendorderdata')}">
		<input type="text" style="width: 140px;" class="dfinput ordertimebody1" name="strat" id="countTimestart" onfocus="selecttime(1)" value="<?php echo date("Y-m-d H:i:s",$strat);?>" size="17" class="date" readonly> - <input type="text" style="width: 140px;" class="dfinput ordertimebody2" name="end" id="countTimeend" onfocus="selecttime(2)" value="<?php echo date("Y-m-d H:i:s",$end);?>" size="17"  class="date" readonly>
		<input name="" type="submit" class="btn" value="确认"/>
		</form>
	</div>
	<table class="tablelist">
		<thead>
		<tr><th>名称</th><th>数值</th></tr>
		<tr><th>腾讯今日派单数:</th><th><input value="<?php echo $tx['tx_today'];?>" type="text" readonly/></th></tr>
		<tr><th>腾讯昨日派单数:</th><th><input value="<?php echo $tx['tx_yestoday'];?>" type="text" readonly/></th></tr>
		<?php if(!empty($data)){?>
			<tr><th>已完成总订单数量:</th><th><input value="<?php echo $data['allnum'];?>" type="text" readonly/></th></tr>
			<tr><th>讲述类订单数量:</th><th><input value="<?php echo $data['type0'];?>" type="text" readonly/></th></tr>
			<tr><th>情感类订单数量:</th><th><input value="<?php echo $data['type1'];?>" type="text" readonly/></th></tr>
			<tr><th>演绎类订单数量:</th><th><input value="<?php echo $data['type2'];?>" type="text" readonly/></th></tr>
			<tr><th>新闻类订单数量:</th><th><input value="<?php echo $data['type3'];?>" type="text" readonly/></th></tr>
			<tr><th>未响应订单数量:</th><th><input value="<?php echo $data['NoReplyorder'];?>" type="text" readonly/></th></tr>
			<!-- <tr><th>未响应主播数量:</th><th><input value="<?php echo $data['NoReplyuser'];?>" type="text" readonly/></th></tr> -->
			<tr><th>主播接单数量:</th><th><input value="<?php echo $data['trueorder'];?>" type="text" readonly/></th></tr>
			<tr><th>参与主播数量:</th><th><input value="<?php echo $data['trueuser'];?>" type="text" readonly/></th></tr>
			<tr><th>最短交单时间:</th><th><input value="<?php echo floor($data['timemin']['time']/60).'分'.($data['timemin']['time']%60).'秒';?>" type="text" readonly/></th></tr>
			<tr><th>最短交单时间订单字数:</th><th><input value="<?php echo $data['timemin']['words'];?>" type="text" readonly/></th></tr>
			<tr><th>最长交单时间:</th><th><input value="<?php echo floor($data['timemax']['time']/60).'分'.($data['timemax']['time']%60).'秒';?>" type="text" readonly/></th></tr>
			<tr><th>最长交单时间订单字数:</th><th><input value="<?php echo $data['timemax']['words'];?>" type="text" readonly/></th></tr>
			<tr><th>保底最长交单时间:</th><th><input value="<?php echo floor($data['admintimemin']['time']/60).'分'.($data['admintimemin']['time']%60).'秒';?>" type="text" readonly/></th></tr>
			<!-- <tr><th>保底最长交单时间订单字数:</th><th><input value="<?php echo $data['admintimemin.words'];?>" type="text" readonly/></th></tr> -->
		<?php }else{?>
			<tr><th>请选择日期</th><th></th></tr>
		<?php }?>
		</thead>
	</table>

</div>
</body>
</html>
